package py.com.fms.ven.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;


import py.com.fms.fms.bean.BranchBean;
import py.com.fms.fms.bean.CurrencyBean;
import py.com.fms.fms.bean.RefDetBean;
import py.com.fms.fms.bean.SupplierBean;
import py.com.fms.fms.bean.VoucherBean;


public class SalesHeadBean implements Serializable {
	
	private static final long serialVersionUID = 2952181466247486472L;
	/**
	 * 
	 */

	private Long id;
	private Long idEnt;
	private Long idBranch;
	private Long idTypeTrans;  // ej: venta

	private String stamping;
	private String establishment;
	private String expedition;
	private String voucher;
	private Long idCustomer;
	private Date voucherDate;
	private Date startDate;
	private Date statusDate;
	private Long idTransRef; // en caso de pedido, id del registro
	private Long idTypeTransRef; // ej: pedido, compra
	private Long saleType;
	private Long currency;
	private Double changeType;
	private Long costCenter;
	private Long saleCondition;
	private BigDecimal total;
	private BigDecimal taxTotal;
	private BigDecimal gravTotal;
	private BigDecimal exemptTotal;
	private BigDecimal discount;
	private BigDecimal charge;
	private String ref;
	private String status;
	private Integer instalments;
//	private BuyConditionBean buyConditionData;
	private RefDetBean saleTypeData;
	private RefDetBean costCenterData;
	private CustomerBean customerData;
	private CurrencyBean currencyData;
//	private OrderHeadBean orderHeadData;
//	private OrderDetBean orderDetData;
//	private BranchBean branchData;
	private VoucherBean voucherData; // Tipo de Comprobante
	private Long cancellationReason;
	private Long userIns;
	private RefDetBean cancellationReasonData;
	private Boolean selected;
	
	
	public boolean equals(Object obj) {
		if (!(obj instanceof SalesHeadBean)) {
		return false;
		}
		SalesHeadBean bean = (SalesHeadBean) obj;
		System.out.println("EQUALSSSSSSSS bean:" + bean);
		System.out.println("EQUALSSSSSSSS bean.id:" + bean.id);
		System.out.println("EQUALSSSSSSSS this.id:" + this.id);
		
		return (bean.id.equals(this.id));

		}

	
	// ACCESSORS AND MUTATORS
	
	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public Long getIdEnt() {
		return idEnt;
	}


	public void setIdEnt(Long idEnt) {
		this.idEnt = idEnt;
	}


	public Long getIdBranch() {
		return idBranch;
	}


	public void setIdBranch(Long idBranch) {
		this.idBranch = idBranch;
	}


	public Long getIdTypeTrans() {
		return idTypeTrans;
	}


	public void setIdTypeTrans(Long idTypeTrans) {
		this.idTypeTrans = idTypeTrans;
	}


	public String getStamping() {
		return stamping;
	}


	public void setStamping(String stamping) {
		this.stamping = stamping;
	}


	public String getEstablishment() {
		return establishment;
	}


	public void setEstablishment(String establishment) {
		this.establishment = establishment;
	}


	public String getExpedition() {
		return expedition;
	}


	public void setExpedition(String expedition) {
		this.expedition = expedition;
	}


	public String getVoucher() {
		return voucher;
	}


	public void setVoucher(String voucher) {
		this.voucher = voucher;
	}


	public Long getIdCustomer() {
		return idCustomer;
	}


	public void setIdCustomer(Long idCustomer) {
		this.idCustomer = idCustomer;
	}


	public Date getVoucherDate() {
		return voucherDate;
	}


	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}


	public Date getStartDate() {
		return startDate;
	}


	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}


	public Date getStatusDate() {
		return statusDate;
	}


	public void setStatusDate(Date statusDate) {
		this.statusDate = statusDate;
	}


	public Long getIdTransRef() {
		return idTransRef;
	}


	public void setIdTransRef(Long idTransRef) {
		this.idTransRef = idTransRef;
	}


	public Long getIdTypeTransRef() {
		return idTypeTransRef;
	}


	public void setIdTypeTransRef(Long idTypeTransRef) {
		this.idTypeTransRef = idTypeTransRef;
	}


	public Long getSaleType() {
		return saleType;
	}


	public void setSaleType(Long saleType) {
		this.saleType = saleType;
	}


	public Long getCurrency() {
		return currency;
	}


	public void setCurrency(Long currency) {
		this.currency = currency;
	}


	public Double getChangeType() {
		return changeType;
	}


	public void setChangeType(Double changeType) {
		this.changeType = changeType;
	}


	public Long getCostCenter() {
		return costCenter;
	}


	public void setCostCenter(Long costCenter) {
		this.costCenter = costCenter;
	}


	public Long getSaleCondition() {
		return saleCondition;
	}


	public void setSaleCondition(Long saleCondition) {
		this.saleCondition = saleCondition;
	}


	public BigDecimal getTotal() {
		return total;
	}


	public void setTotal(BigDecimal total) {
		this.total = total;
	}


	public BigDecimal getTaxTotal() {
		return taxTotal;
	}


	public void setTaxTotal(BigDecimal taxTotal) {
		this.taxTotal = taxTotal;
	}


	public BigDecimal getGravTotal() {
		return gravTotal;
	}


	public void setGravTotal(BigDecimal gravTotal) {
		this.gravTotal = gravTotal;
	}


	public BigDecimal getExemptTotal() {
		return exemptTotal;
	}


	public void setExemptTotal(BigDecimal exemptTotal) {
		this.exemptTotal = exemptTotal;
	}


	public BigDecimal getDiscount() {
		return discount;
	}


	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}


	public BigDecimal getCharge() {
		return charge;
	}


	public void setCharge(BigDecimal charge) {
		this.charge = charge;
	}


	public String getRef() {
		return ref;
	}


	public void setRef(String ref) {
		this.ref = ref;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public Integer getInstalments() {
		return instalments;
	}


	public void setInstalments(Integer instalments) {
		this.instalments = instalments;
	}


	public Long getCancellationReason() {
		return cancellationReason;
	}


	public void setCancellationReason(Long cancellationReason) {
		this.cancellationReason = cancellationReason;
	}


	public Long getUserIns() {
		return userIns;
	}


	public void setUserIns(Long userIns) {
		this.userIns = userIns;
	}


	public RefDetBean getCancellationReasonData() {
		return cancellationReasonData;
	}


	public void setCancellationReasonData(RefDetBean cancellationReasonData) {
		this.cancellationReasonData = cancellationReasonData;
	}


	public Boolean getSelected() {
		return selected;
	}


	public void setSelected(Boolean selected) {
		this.selected = selected;
	}


	public void setCurrencyData(CurrencyBean currencyData) {
		this.currencyData = currencyData;
	}


	public CurrencyBean getCurrencyData() {
		return currencyData;
	}


	public void setCustomerData(CustomerBean customerData) {
		this.customerData = customerData;
	}


	public CustomerBean getCustomerData() {
		return customerData;
	}


	public VoucherBean getVoucherData() {
		return voucherData;
	}


	public void setVoucherData(VoucherBean voucherData) {
		this.voucherData = voucherData;
	}


	public void setSaleTypeData(RefDetBean saleTypeData) {
		this.saleTypeData = saleTypeData;
	}


	public RefDetBean getSaleTypeData() {
		return saleTypeData;
	}


	public void setCostCenterData(RefDetBean costCenterData) {
		this.costCenterData = costCenterData;
	}


	public RefDetBean getCostCenterData() {
		return costCenterData;
	}
	

	

	
	
}
